# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-24 22:10

class Women:
    def __init__(self, name, age):
        self.name = name
        self.__age = age
    def secret(self):
        print(self.__age)
    def __secret1(self):
        print(self.__age)

    def boyfriend(self):
        self.__secret1()

xiao_hong = Women("小红", 18)
# print(xiao_hong.__age) 报错
xiao_hong.secret()
xiao_hong.boyfriend()